﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Entities;
namespace WCF_ListenMusic.Services.Module_Singer.Public
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ISingerService" in both code and config file together.
    [ServiceContract]
    public interface ISingerService
    {
        [OperationContract]
        List<Singer> getAllSinger_byCountry(int countryid);
        [OperationContract]
        List<ViewSearch_SingerName> search_SongName(string keyword);
        [OperationContract]
        List<Singer> getAllSinger();
        [OperationContract]
        Singer getSinger_bySingerName(string singerName);
        [OperationContract]
        Singer checkSingerName(string singername);
        [OperationContract]
        int getMaxID_Singer();
        [OperationContract]
        [TransactionFlow(TransactionFlowOption.Mandatory)]
        bool insertNewSinger(Singer singer);

    }
}
